//
//  YRJSaveTool.h
//  YanRenjie
//
//  Created by dllo on 15/11/6.
//  Copyright (c) 2015年 yanrenjie. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "YRJTripHeader.h"

typedef NS_ENUM(NSUInteger, SaveToolType) {
    SaveToolCity,
    SaveToolCountry,
};
@interface YRJSaveTool : NSObject
// 用来判断文件夹是否存在, 如果没有文件夹就创建一个, 如果有不做任何操作
+ (void)isHaveFolder;

+ (BOOL)isCityInPlist:(YRJAllHotCityModel *)city;

+ (void)saveCityToPlist:(YRJAllHotCityModel *)city;

+ (void)cancelCityInPlist:(YRJAllHotCityModel *)city;

+ (void)removeCityFromPlist:(YRJAllHotCityModel *)city;

+ (BOOL)isCountryInPlist:(YRJHotCountryModel *)country;

+ (void)saveCountryToPlist:(YRJHotCountryModel *)country;

+ (void)cancelCountryInPlist:(YRJHotCountryModel *)country;

+ (void)removeCountryFromPlist:(YRJHotCountryModel *)country;

+ (BOOL)isInFile:(id)object type:(SaveToolType)type;
@end
